package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName amount
 */
@TableName(value ="amount")
@Data
public class Amount implements Serializable {
    /**
     * 报销ID
     */
    @TableId
    private Integer amountId;

    /**
     * 报销流程ID
     */
    private String amountProcess;

    /**
     * 报销流程标题
     */
    private String amountTitle;

    /**
     * 报销时间
     */
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date amountTime;

    /**
     * 报销部门
     */
    private String deptName;

    /**
     * 报销人ID
     */
    private Integer empId;

    /**
     * 报销状态
     */
    private Integer amountState;

    /**
     * 报销总额
     */
    private Double amountMoney;

    private String empCard;

    private String empName;

    @TableField(exist = false)
    private AmountXb amountXb;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}